package liudan.archetype.proxy;

import java.lang.reflect.Constructor;
import java.lang.reflect.Proxy;
import java.util.Collection;

/**
 * Description:
 * Email: liudan@ucfgroup.com
 * Title
 * Copyright: Copyright (c) 2017
 * User: liudan
 * Created on 2017/3/12 21:48
 */
public class ProxyTest {

    public static void main(String[] args) {

        Class clazz = Proxy.getProxyClass(Collection.class.getClassLoader(), Collection.class);


        Constructor[] constructors = clazz.getConstructors();
        for (Constructor constructor : constructors) {
            String name = constructor.getName();
            Class[] clazzParam = constructor.getParameterTypes();
            for (Class param:clazzParam){
                System.out.println(param.getName());;
            }
        }
    }

}
